class FixAutoIncrement < ActiveRecord::Migration
  def self.up
    remove_column("ads", "id")
    add_column :ads, :id, :primary_key
    remove_column("ad_types", "id")
    add_column :ad_types, :id, :primary_key
    remove_column("auction_ads", "id")
    add_column :auction_ads, :id, :primary_key
    remove_column("bids", "id")
    add_column :bids, :id, :primary_key
    remove_column("buy_now_ads", "id")
    add_column :buy_now_ads, :id, :primary_key
    remove_column("categories", "id")
    add_column :categories, :id, :primary_key
    remove_column("events", "id")
    add_column :events, :id, :primary_key
    remove_column("judgements", "id")
    add_column :judgements, :id, :primary_key
    remove_column("users", "id")
    add_column :users, :id, :primary_key
  end

  def self.down
  end
end
